import request from "../model";

//用户查询的接口
export const userQuery = (params) => {
  return request({
    method: "get",
    url: "/userinfo",
    params,
  });
};
//用户删除的接口
export const userDelById = id =>
  request({ method: "delete", url: "/userinfo/" + id });
//用户的新增接口

export const  userAdd = (data)=>{
    return  request({
        method:"post",
        url:"/userinfo",
        data
    })

}
//用户更新的接口
export  const  userUpdate= (id,data)=>{
    return request({
        method:"patch",
        url:"/userinfo/"+id,
        data
    })
}

